package oop.core.view.listeners;

import java.awt.event.ActionEvent;

/**
 * This class is activated upon pressing the Reset button in the
 * ControllerConfigMenu. Handles the actions associated with
 * reseting all the values in each text field in the Controller
 * Configuration Menu.
 * @author Stephanie
 */
import java.awt.event.ActionListener;

import oop.core.view.ControllerConfigMenu;

public class ResetControllerConfigListener implements ActionListener {

	private ControllerConfigMenu menu;
	
	public ResetControllerConfigListener(ControllerConfigMenu menu)
	{
		this.menu = menu;
	}
	
	/**
	 * This method is activated by the reset button in the 
	 * ControllerConfigMenu. It calls a method resetMenu in the 
	 * ControllerConfigMenu that causes each field value to reset.
	 */
	
	@Override
	public void actionPerformed(ActionEvent e) {
		menu.resetMenu();
	}

}
